package service.impl;

import dao.HouseDao;
import dao.impl.HouseDaoImpl;
import pojo.House;
import service.HouseService;

import java.util.List;

/**
 * @author :kuexun
 * @description : todo
 * @create : 2019/9/2 22:12
 */
public class HouseServiceImpl implements HouseService{

    private HouseDao dao = new HouseDaoImpl();

    @Override
    public List<House> findHouses() {
        return dao.findHouses();
    }

    @Override
    public boolean addHouse(House house) {
        return dao.addHouse(house);
    }

    @Override
    public boolean updateHouse(House house) {
        return dao.updateHouse(house);
    }

    @Override
    public boolean delHouse(int id) {
        return dao.delHouse(id);
    }
}
